from django import forms

from main.models import Question, Answer, Topic







class QuestionForm(forms.ModelForm):
    class Meta:
        model = Question
        fields = ['title', 'content', 'topic']

class AnswerForm(forms.ModelForm):
    class Meta:
        model = Answer
        fields = ['content']

class TopicForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['name', 'description']

